package com.qyhl.school.school.reporter.contribution.list;


import com.qyhl.webtv.commonlib.entity.school.SchoolContributionBean;

import java.util.List;

public class SchoolContributionListPresenter implements SchoolContributionListContract.SchoolContributionListPresenter {
    private SchoolContributionListContract.SchoolContributionListView mView;

    private SchoolContributionListModel mModel;

    public SchoolContributionListPresenter(SchoolContributionListContract.SchoolContributionListView mView) {
        this.mView = mView;
        this.mModel = new SchoolContributionListModel(this);
    }

    @Override
    public void getList(String lastId) {
        mModel.getList(lastId);
    }

    @Override
    public void setList(List<SchoolContributionBean> beanList) {
        mView.setList(beanList);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
